﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using ZhouYu.NewWorld.BLL.IService;
using ZhouYu.NewWorld.DAL;
using ZhouYu.NewWorld.Model;

namespace ZhouYu.NewWorld.BLL.Service
{
    public class WebsiteService : BaseRepository<Website>, IWebsiteService
    {
        public List<Website> Get()
        {
            Expression<Func<Website, bool>> lambdaExpression = a => true;
            return QueryList(lambdaExpression);
        }
        //判断是否已有  
        public bool Judge(string Name)
        {
            return Exists(a => a.Website_Copyright == Name);
        }
    }
}
